home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AGA Toolkit '97
/
The AGA Toolkit '97.iso
/
text
/
misc
/
port
/
string
/
strend.s
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-09-07
|
235 b
|
21 lines
XDEF StrEnd
; Args:
; A0 = Pointer to a string.
; Returns:
; A0 = Pointer to the null end byte.
; D0 = Length of the string.
StrEnd:
move.l a0,d0
.StrEnd1:
tst.b (a0)+
bne.b .StrEnd1
subq.l #1,a0
sub.l a0,d0
neg.l d0
rts